<template>
  <div class="process">
    <el-timeline>
      <el-timeline-item
        :timestamp="tabItem.name"
        placement="top"
        :color="tabItem.color"
        v-for="(tabItem,tabindex) in users"
        :key="tabindex"
      >
        <el-card>
          <div class="process-flex">
            <div class="process-item" v-for="(item,index) in tabItem.assignee" :key="index">
              <img :src="item.avatar" v-if="item.avatar" class="processImg" />
              <div v-else class="processImg processTex">{{item.name.substr(0,1)}}</div>
              <span>{{item.name}}</span>
              <div class="process-before" v-if="index%5!=0">+</div>
            </div>
            <!-- <div class="process-item" v-if="tabItem.checkedCities.indexOf('optional') != -1">
                <img src="@Components/assets/img/add.png" />
                <span></span>
            </div>-->
          </div>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
export default {
  data() {
    return {
      users: []
    };
  },
  methods: {}
};
</script>
<style lang="scss" scoped>
.process {
  width: 100%;
  .process-flex {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    .process-item {
      width: 20%;
      display: flex;
      align-items: center;
      flex-direction: column;
      text-align: center;
      color: #999;
      margin-bottom: 10px;
      position: relative;
      .processImg {
        width: 40px;
        height: 40px;
        border-radius: 5px;
        margin-bottom: 5px;
      }
      .processTex {
        background-color: #409eff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 16px;
      }
      .process-before {
        position: absolute;
        color: #999;
        left: -7.5px;
        width: 15px;
        height: 15px;
        font-size: 15px;
        margin-top: 10px;
      }
    }
  }
}
/deep/ .el-timeline {
  padding: 0 !important;
}
/deep/ .el-card__body{
  padding: 5px !important;
} 
/deep/ .process-item{
  width: 16% !important;
  padding: 5px  0 !important;
  margin-bottom:0 !important;
} 
/deep/ .is-always-shadow{
  box-shadow: none !important;
} 
</style>
